package com.imooc.repository;

import com.imooc.entity.SubwayStation;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface SubwayStationRepository extends CrudRepository<SubwayStation,Long> {
    /**
     * 查询地铁线路
     * @param subwayId
     * @return
     */
    List<SubwayStation>  findAllBySubwayId(Long subwayId);

}
